package tau.pimpmyfreedb.common.types;

import tau.pimpmyfreedb.dal.IDataItem;

public abstract class DataItemBase implements IDataItem {
    private int dataId;
    private String name;

    public DataItemBase(int id, String name) throws IllegalArgumentException {
	this.dataId = id;
	this.name = name;
    }

    @Override
    public int getDataId() {
	return dataId;
    }

    @Override
    public String getName() {
	return name;
    }

    @Override
    public void setName(String name) {
	this.name = name;
    }

    @Override
    public void setDataIdAfterInsert(int dataID) {
	this.dataId = dataID;
    }

}
